#ifndef SPHERE_DIALOG_H
#define SPHERE_DIALOG_H

#include <QDialog>
#include <QtGui>

#include "defines/global.h"

class SphereDialog : public QDialog{
    Q_OBJECT

    public:
        SphereDialog(int, QWidget * = 0);
        SphereDialog(ObjectTreeItem *, QWidget * = 0);
        ~SphereDialog();

    signals:
        void done();
        void done(Object *);

    private:
        Object *object;
        ObjectTreeItem *item;

        int id, colorR, colorG, colorB, colorAlpha;
        double radius;
        double centerX, centerY, centerZ;
		double miS, miK;

		QPushButton *colorPushButton;

        void createLayout();

        void setButtonColor();

    private slots:
        void acceptAndCreate();
        void changeColor();
        void changeRadius(double);
        void changeCenterX(double);
        void changeCenterY(double);
        void changeCenterZ(double);
        void changeMiS(double);
        void changeMiK(double);
};

#endif

